import Layout from '@/views/layout.vue'
import Article from '@/views/seconds/article.vue'
import Collect from '@/views/seconds/collect.vue'
import Like from '@/views/seconds/like.vue'
import User from '@/views/seconds/user.vue'

import Detail from '@/views/detail.vue'
import Login from '@/views/login.vue'
import Register from '@/views/register.vue'
import Desc from '@/views/desc.vue'
import MapMap from '@/views/mapMap.vue'
import CityList from '@/views/cityList.vue'
import ToHire from '@/views/tohire.vue'
import ShouCang from '@/views/shoucang.vue'
import ToSearch from '@/views/tosearch.vue'
const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/article',
    children: [
      { path: '/article', component: Article },
      { path: '/like', component: Like },
      { path: '/collect', component: Collect },
      { path: '/user', component: User }
    ]
  },
  { path: '/detail', component: Detail },
  { path: '/login', component: Login },
  { path: '/register', component: Register },
  { path: '/desc', component: Desc },
  { path: '/mapMap', component: MapMap },
  { path: '/cityList', component: CityList },
  { path: '/tohire', component: ToHire },
  { path: '/tosearch', component: ToSearch },
  { path: '/shoucang', component: ShouCang }
]

export default routes
